<%= simple_form_for([@order, @item]) do |f| %>
	<%= f.error_notification %>
  	<%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>


	<%= f.input :product_pn, label: '物料编码' %>
	<%= f.input :product_name, label: '产品名称' %>
	<%= f.input :product_desc, label: '规格型号' %>
	<%= f.input :unit, label: '单位' %>
	<%= f.input :quantity, label: '数量' %>
	<%= f.input :unit_price, label: '价格' %>
	<%= f.input :tax, label: '税' %>
	<%= f.input :amount, label: '金额' %>
	<%= f.input :comment, label: '备注' %>
	
	<!-- <%= f.input :order_id, :input_html => { :value => @order.id}, as: :hidden  %>	 -->

	<%= f.button :submit, "提交",class: "btn-primary" %>
<% end %>
	
